You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❌ Patch coverage is 60.71429% with 88 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.67%. Comparing base (d7ab027) to head (0a2bfad). ⚠️ Report is 47 commits behind head on main.
LGTM
One small API thought: would it be better to expose this as something like getRawReference() instead of getRawPointer(), returning both the pointer and byteLength? For byte sources, the pointer is usually
meant to be used together with its length.
@meixg I don't think it is acually necessary. When using the function you already own the source (getRawPointer(buffer)) so you can call the byteLength directly, isn't it?
ShogunPanda
changed the title
ffi: added new methods and error codes
ffi: add new methods and error codes
Apr 16, 2026
addaleax
added
the
ffi
Issues and PRs related to experimental Foreign Function Interface support.
label
Apr 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit-queue-squashAdd this label to instruct the Commit Queue to squash all the PR commits into the first one.ffiIssues and PRs related to experimental Foreign Function Interface support.lib / srcIssues and PRs related to general changes in the lib or src directory.needs-ciPRs that need a full CI run.
7 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
benchmark/ffi/getpid.jsusingffi.dlopen(null, ...)+uv_os_getpid. Thanks to @bengl for Foreign Function Interface (FFI) implementation #46905doc/api/errors.mdas asked from @jasnell in lib,src,test,doc: add node:ffi module #62072 (comment)As promised to @justjake, also the following followups requested in #62072 (comment):
ffi.exportArrayBuffer(...)andffi.exportArrayBufferView(...).exportBytes) to avoid extra JS Buffer wrapper allocations.